package com.haredot.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.haredot.entity.Comments;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haredot.vo.CommentsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author Administrator
* @description 针对表【tb_comments】的数据库操作Mapper
* @createDate 2023-09-05 21:09:53
* @Entity com.haredot.entity.Comments
*/
@Mapper
public interface CommentsMapper extends BaseMapper<Comments> {

    Page<CommentsVo> queryComments(Page<? extends Comments> page, @Param("userId") Long userId, @Param("resId") Long resId);

    long findDownloadHistoryByCurrentUserCount(@Param("userId") Long currentUserId, @Param("resId") Long resId);
}




